package com.xjl.design.pattern.structural.decorator.v2;

public class Test {
    public static void main(String[] args) {
        AbstrabctBettercake abstrabctBettercake = new Bettercake();
        abstrabctBettercake = new  EggDecorator(abstrabctBettercake);
        abstrabctBettercake = new  EggDecorator(abstrabctBettercake);
        abstrabctBettercake = new SausageDecorator(abstrabctBettercake);
        System.out.println(abstrabctBettercake.getDesc() + "   销售价格：" + abstrabctBettercake.cost());

    }
}
